# curconv

Simple script for converting between currencies. Uses the libre [fixer.io](https://fixer.io) API.

# Usage
```
curconv.py [amount] [input currency] [output currency]
```

Where:

* `amount` is the amount of the input currency that is to be converted

* `input currency` is the currency from which the amount is being converted

* `output currency` is the currency to which the amount is being converted

# Notes
You _must_ supply your own API key. This can be obtained from [fixer.io](https://fixer.io) and should be set as the value of API_KEY in the script. The free plan normally does not provide exchange rates using base currencies other than the Euro; however, curconv works around that limitation by converting the original amount to Euros and then to the output currency.

Tested with both Python 2.7 and 3.6.

# Licence
This Work is subject to the terms of the Expat Licence. If a copy of the Expat Licence was not distributed with this Work, you can obtain one at <https://directory.fsf.org/wiki/License:Expat>.